package com.wkck.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.wkck.VO.CompanyInfoVo;
import com.wkck.VO.CompanyVo;
import com.wkck.domain.Company;
import com.wkck.dto.CompanyQueryParamsDto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: CK
 * @Date: 2023/12/22/21:34
 * @Description:
 */
public interface CompanyMapper extends BaseMapper<Company> {

    Page<CompanyInfoVo> getAllCompanyInfo(CompanyQueryParamsDto companyQueryParamsDto);

    CompanyInfoVo getCompanyInfoByUUID(String uuid);

    CompanyInfoVo getAllCompanyInfoByIds(Integer id);

    @Select("select company from company group by company")
    List<String> getAllCompanyName();

    CompanyVo getCompanyVO(String company);
}
